package com.cxg.allsys.expertsys.controller;

import com.cxg.allsys.expertsys.pojo.Comment;
import com.cxg.allsys.expertsys.service.IExpertsysService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("/comment")
@RestController
@Slf4j
public class CommentConfig {

    @Autowired
    private IExpertsysService iExpertsysSevice;



    //添加评论
    @RequestMapping("/PingLun")
    public String pingLun(Integer article_id,Integer expert_id,String c_content,String is_recommend){
        //Integer article_id,Integer expert_id,String c_content,String is_recommend
        System.out.println( article_id+expert_id+ c_content+is_recommend);
        return iExpertsysSevice.addpinglun(article_id,expert_id,c_content,is_recommend);
    }
}
